# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-polkit
pkgver=1.26.1
pkgrel=0
pkgdesc="MATE Authentication Agent for PolicyKit"
url="https://github.com/mate-desktop/mate-polkit"
arch="all"
license="GPL-2.0-or-later"
depends="mate-common"
makedepends="polkit-dev libtool intltool gtk+3.0-dev
	gobject-introspection-dev"
subpackages="$pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-polkit-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0c8e881991d90af3121212c2dbb931bcea9ab9b9d22e0664d866b8a2bc95f2427bba09635be35f1a01404efd83b567d8a3d947cca84562463591a7821fb85678  mate-polkit-1.26.1.tar.xz
"
